package com.sgcc.sx.pmos.common.utils;


import com.sgcc.sx.pmos.common.http.HttpInterConst;

import java.util.HashMap;
import java.util.Map;

public class UrlUtils {

    public static Map<String, String> getHeaderByUrl(String url) {
        Map<String, String> headers = new HashMap<>();

        String result = "";
        if (url.equals(HttpInterConst.LOGIN_GET_KEY)) {
            result = "";
        }

        if (url.equals(HttpInterConst.USERINFO)) {
            result = "";
        }

        if (url.equals(HttpInterConst.HOME_STORE)) {
            result = "";
        }

        if (url.equals(HttpInterConst.HOME_PACKAGE)) {
            result = "";
        }

        if (url.equals(HttpInterConst.HOME_CONTRACT_EXECUTION)) {
            result = "";
        }

        if (url.equals(HttpInterConst.MALL_PACKAGE_COLLECTION)) {
            result = "";
        }

        if (url.equals(HttpInterConst.MALL_PACKAGE_DELE_COLLECTION)) {
            result = "";
        }

        if (url.equals(HttpInterConst.GET_CONFIG_INFO)) {
            result = "";
        }

        if (url.equals(HttpInterConst.GET_RATIO_CURVE)) {
            result = "";
        }

        if (url.equals(HttpInterConst.MALL_PACKAGECOMB)) {
            result = "";
        }

        if (url.equals(HttpInterConst.MALL_GETPACKAGEINFO)) {
            result = "";
        }

        if (url.equals(HttpInterConst.MALL_GETSCHEMECOMBBYSCHEMEIDYH)) {
            result = "";
        }

        if (url.equals(HttpInterConst.MALL_GETPRICEANDPRICEDETAILYH)) {
            result = "";
        }

        if (url.equals(HttpInterConst.MALL_QUERYDATAINFO)) {
            result = "";
        }

        if (url.equals(HttpInterConst.PACKAGE_COMPARISON)) {
            result = "";
        }

        if (url.equals(HttpInterConst.PACKAGE_INFO)) {
            result = "";
        }

        if (url.equals(HttpInterConst.PACKAGE_COMPARISON_DETAIL)) {
            result = "";
        }

        if (url.equals(HttpInterConst.PACKAGE_COMPARISON_SCHEME_DETAIL)) {
            result = "";
        }

        if (url.equals(HttpInterConst.PACKAGE_COMPARISON_PRICE_DETAIL)) {
            result = "";
        }

        if (url.equals(HttpInterConst.COMPUTATION)) {
            result = "";
        }

        if (url.equals(HttpInterConst.QUERY_CURVE_INFO)) {
            result = "";
        }

        if (url.equals(HttpInterConst.QUERY_HIS_CURVE_INFO)) {
            result = "";
        }

        if (url.equals(HttpInterConst.QUERY_HIS_CURVE_PRICE)) {
            result = "";
        }

        if (url.equals(HttpInterConst.ORDER_INDENT_LIST)) {
            result = "/pxf-phbsx-shop/#/myOrder";
        }

        if (url.equals(HttpInterConst.CHECK_ORDER_TIME)) {
            result = "";
        }

        if (url.equals(HttpInterConst.CHECK_ORDER)) {
            result = "";
        }

        if (url.equals(HttpInterConst.ORDER_RELIEVECONTRACT)) {
            result = "/pxf-phbsx-shop/#/myOrder";
        }

        if (url.equals(HttpInterConst.ORDER_CANCELBARGAIN)) {
            result = "";
        }

        if (url.equals(HttpInterConst.ORDER_USERREJECTBARGAIN)) {
            result = "";
        }


        if (url.equals(HttpInterConst.ORDER_BEFORESUBMIT)) {
            result = "";
        }

        if (url.equals(HttpInterConst.ORDER_QUOTA_CHECK)) {
            result = "";
        }

        if (url.equals(HttpInterConst.PLACE_ORDER_NOW)) {
            result = "";
        }

        if (url.equals(HttpInterConst.PLACE_QUERYORDERINFOOFTABLE)) {
            result = "/pxf-phbsx-shop/#/frontDetail";
        }

        if (url.equals(HttpInterConst.ORDER_GETPACKAGEORDERS)) {
            result = "/pxf-phbsx-shop/#/myOrder";
        }

        if (url.equals(HttpInterConst.ORDER_POWERCHANGE)) {
            result = "/pxf-phbsx-shop/#/contractChange";
        }

        if (url.equals(HttpInterConst.ORDER_PACKAGECOMPARISONPRICEDETAILTWO)) {
            result = "/pxf-phbsx-shop/#/frontDetail";
        }
        if (url.equals(HttpInterConst.ORDER_PACKAGECOMPARISONSCHEMEDETAILTWO)) {
            result = "/pxf-phbsx-shop/#/frontDetail";
        }

        if (url.equals(HttpInterConst.ORDER_GETPRICEDETAIL)) {
            result = "/pxf-phbsx-shop/#/frontDetail";
        }

        if (url.equals(HttpInterConst.ORDER_GETSCHEMERES)) {
            result = "/pxf-phbsx-shop/#/frontDetail";
        }
        if (url.equals(HttpInterConst.ORDER_GETPACKAGEINFORESANDBARG)) {
            result = "/pxf-phbsx-shop/#/frontDetail";
        }
        if (url.equals(HttpInterConst.ORDER_GETPACKAGEINFORES)) {
            result = "/pxf-phbsx-shop/#/frontDetail";
        }
        if (url.equals(HttpInterConst.ORDER_PRICE_CHANGE)) {
            result = "/pxf-phbsx-shop/#/myOrder";
        }
        if (url.equals(HttpInterConst.ORDER_REJECTPRICECHANGE)) {
            result = "/pxf-phbsx-shop/#/myOrder";
        }
        if (url.equals(HttpInterConst.ORDER_CONFIRMPRICECHANGE)) {
            result = "/pxf-phbsx-shop/#/myOrder";
        }
        if (url.equals(HttpInterConst.ORDER_CANCELPRICECHANGE)) {
            result = "/pxf-phbsx-shop/#/myOrder";
        }
        if (url.equals(HttpInterConst.ORDER_CANCELPOWERCHANGE)) {
            result = "/pxf-phbsx-shop/#/myOrder";
        }
        if (url.equals(HttpInterConst.ORDER_CANCELRELIEVECONTRACT)) {
            result = "/pxf-phbsx-shop/#/myOrder";
        }
        if (url.equals(HttpInterConst.USER_COLLECTION)) {
            result = "/pxf-phbsx-shop/#/myFavorite";
        }
        if (url.equals(HttpInterConst.USER_DELETE_COLLECTION)) {
            result = "";
        }


        headers.put("CurrentRoute", result);
        return headers;
    }
}
